module.exports = (sequelize,DataTypes) => {
    const Article = sequelize.define('Article', {
        // 在这里定义模型属性
        articleId: {
          type: DataTypes.INTEGER,
          autoIncrement: true,
          primaryKey: true
        },
        title: {
          type: DataTypes.STRING(100),
          allowNull: false
        },
        content: {
          type: DataTypes.STRING(255),
          allowNull: false,
          defaultValue:"..."
        }
      }, {
        tableName: 'articles'
      });
      return Article
}